<template>
  <div>
    <z-input-number id="inputNumber" v-model:value="value" :min="1" :max="10" />
    当前值：{{ value }}
    <z-input-number id="inputNumber" v-model:value="value"  @change="valChange"/>
    取整
  </div>
</template>
<script>
import { defineComponent, ref } from 'vue';
export default defineComponent({
  setup() {
    const value = ref(3);
    const valChange = (val) => {
      value.value = parseInt(val)
    }
    return {
      value,
      valChange
    };
  },

});
</script>